Skip to content

Implement Agent Skills plugin for BotSharp#1278

Closed
Copilot wants to merge 7 commits intoskillfrom
copilot/implement-agent-skills-botsharp
Closed

Implement Agent Skills plugin for BotSharp#1278
Copilot wants to merge 7 commits intoskillfrom
copilot/implement-agent-skills-botsharp

Conversation

Copy link

Copilot AI commented Jan 15, 2026

Adds a new plugin enabling AI agents to leverage reusable skills following the Agent Skills specification.

New Plugin: BotSharp.Plugin.AgentSkills

Core Components

  • SkillLoader/SkillParser - Discovers and parses SKILL.md files with YAML frontmatter from user (~/.botsharp/skills/) and project-level directories
  • SkillValidator - Validates skill names (lowercase alphanumeric + hyphens, max 64 chars), descriptions, and file sizes

Agent Functions

  • skill-read_skill - Read full SKILL.md content for a skill
  • skill-read_skill_file - Read files within a skill directory
  • skill-list_skill_directory - List skill directory contents

Security

  • Path traversal protection via ResolveSafePath
  • Symlink validation for external targets
  • File size limits (10 MB) and output truncation

Usage

Create skills in ~/.botsharp/skills/{skill-name}/SKILL.md:

---
name: web-research
description: Performs web research and summarizes findings
license: MIT
allowed-tools: http_* search_*
---

# Web Research Skill

Instructions for the agent...

Configure via AgentSkillsSettings:

{
  "AgentSkills": {
    "EnableUserSkills": true,
    "EnableProjectSkills": true,
    "SkillsCacheDurationSeconds": 300
  }
}

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • agentskills.io
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

参考 https://github.com/sheng-jie/Maf.AgentSkills 的代码为botsharp 实现Agent Skills


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits January 15, 2026 08:39
Co-authored-by: geffzhang <439390+geffzhang@users.noreply.github.com>
Co-authored-by: geffzhang <439390+geffzhang@users.noreply.github.com>
Copilot AI changed the title [WIP] Implement agent skills for botsharp Implement Agent Skills plugin for BotSharp Jan 15, 2026
Copilot AI requested a review from geffzhang January 15, 2026 08:47
@iceljc
Copy link
Collaborator

iceljc commented Jan 15, 2026

Better to remove any Chinese characters and use English only.

Replaces custom skill loading, parsing, and function callback logic with the AgentSkillsDotNet package. Removes legacy code for skill management, utilities, and function callbacks, and introduces new hooks and adapters for integration. Updates dependency references and project files accordingly, and migrates skill definitions and scripts to the new structure.
Major refactor of the Agent Skills plugin to integrate AgentSkillsDotNet, introducing a new SkillService, improved tool registration, and enhanced configuration and security. Adds new hooks for instruction and function injection, restructures plugin initialization, and provides comprehensive documentation, migration guides, and extensive tests and sample skills for validation.
@geffzhang geffzhang deleted the branch skill January 30, 2026 01:03
@geffzhang geffzhang closed this Jan 30, 2026
@geffzhang geffzhang deleted the copilot/implement-agent-skills-botsharp branch February 7, 2026 03:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments